const logger = require('../utils/console-logger')

function log( ctx ) {
    logger.debug( ctx.method, ctx.header.host + ctx.url, ctx.path)
}

module.exports = function () {
    return async function ( ctx, next ) {
        log(ctx);
        await next()
    }
}